import Mock from 'mockjs'
import data from '../data.json'

let tuiJianLunBo = data.index.tuijian.lunbotu
let tuiJainJingXuan = data.index.tuijian.jingxuan
let tuiJianDianShi = data.index.tuijian.dianshi
let tuiJianNootBook = data.index.tuijian.nootbook
let tuiJianJiaDian = data.index.tuijian.jiadian
let categoryShouji = data.category.shouji
let categoryDianshi = data.category.dianshi
let categoryDiannao = data.category.diannao
let categoryJiadian = data.category.jiadian

const tuiJianLunBoData = Mock.mock('/tuiJianLunBo', tuiJianLunBo) // 推荐轮播图数据
const tuiJainJingXuanData = Mock.mock('/tuiJainJingXuan', tuiJainJingXuan) // 推荐精选数据
const tuiJianDianShiData = Mock.mock('/tuiJianDianShi', tuiJianDianShi) // 推荐电视数据
const tuiJianNootBookData = Mock.mock('/tuiJianNootBook', tuiJianNootBook) // 推荐笔记本电脑数据
const tuiJianJiaDianData = Mock.mock('/tuiJianJiaDian', tuiJianJiaDian) // 推荐家电数据
// 分类手机数据
const categoryShoujiData = Mock.mock('/categoryShouji', categoryShouji)
const categoryDianshiDate = Mock.mock('/categoryDianshi', categoryDianshi) // 分类电视数据
const categoryDiannaoData = Mock.mock('/categoryDiannao', categoryDiannao) // 分类电脑数据
const categoryJiadianData = Mock.mock('/categoryJiadian', categoryJiadian) // 分类家电数据

export default { // 导出数据接口
  tuiJianLunBoData,
  tuiJainJingXuanData,
  tuiJianDianShiData,
  tuiJianNootBookData,
  tuiJianJiaDianData,
  categoryShoujiData,
  categoryDianshiDate,
  categoryDiannaoData,
  categoryJiadianData
}
